writing polynomial functions with given zeros